package com.keur.money.data.dv.utils

import com.keur.money.config.KeurConfigs
import com.keur.money.utils.helper.KeurCustomConfigsHelper

/**
 * Sms 关键词过滤
 */
object DvIMSFiltersUtil {

    fun DvIMSMobileFilterList(): ArrayList<String> {
        // SMS mobile 关键词
        val mobileKeyList = arrayListOf("")
        //塞内加尔
        if (KeurConfigs.isSenegal()){
            mobileKeyList.clear()
            mobileKeyList.addAll(arrayOf("orange", "free", "money", "wave", "pret", "loan", "info", "topemprun"))
            mobileKeyList.addAll(arrayOf("Finances","revenus","fonds","ratio","dépenses","bénéficiaires","paiement","espèces"))
        }
        //客服配置读取 Mobile 关键字
        val mobileKeys = KeurCustomConfigsHelper.getMullaMSGMobileKeys()
        if (mobileKeys != null){
            mobileKeyList.addAll(mobileKeys)
        }

        return mobileKeyList
    }

    fun DvIMSBodyFilterList(): ArrayList<String> {
        //SMS Content 关键词
        val bodyKeyList = arrayListOf("")

        //塞内加尔
        if (KeurConfigs.isSenegal()){
            bodyKeyList.clear()
            bodyKeyList.addAll(arrayOf("money", "loan", "pret", "verification", "de passe", "credit"))
            bodyKeyList.addAll(arrayOf("solde","versements","EMI","liquidités","banque","salaire","hypothécaire","défaut","paiement","coûts"))
        }
        //客服配置读取 Content 关键字
        val contentKeys = KeurCustomConfigsHelper.getMullaMSGContentKeys()
        if (contentKeys != null){
            bodyKeyList.addAll(contentKeys)
        }
        return bodyKeyList
    }
}